package com.project.service;

import com.project.entity.qo.CommentQo;
import com.project.result.ResponseResult;

import java.util.List;

/**
 * @ProjectName:
 * @Package:
 * @ClassName:
 * @Author: ZhaoLongShi
 * @CreateDate:
 */
@SuppressWarnings("all")
public interface CommentService {

    /**
     * 评价
     *
     * @param commentQo
     * @return
     */
    ResponseResult comment(CommentQo commentQo);


    /**
     * 获取所有评论（分页）
     *
     * @param current
     * @return
     */
    ResponseResult selectComment(int current,int size);

    /**
     * 根据ID删除评论(可批量)
     *
     * @param idList
     * @return
     */
    ResponseResult deleteCommentByIds(List<Long> idList);

    /**
     * 添加评论
     *
     * @param commentQo
     * @return
     */
    ResponseResult addComment(CommentQo commentQo);

    /**
     * 根据ID更新评论信息
     *
     * @param commentQo
     * @return
     */
    ResponseResult updateCommentById(CommentQo commentQo);


}
